#pragma once
#include <wx/wx.h>
#include <wx/cmdline.h>
#include <wx/filename.h>
#include <wx/zstream.h>
#include <wx/wfstream.h>
#include "verinfo.h"
#include "common.h"
#include "dictdb/dictdbutils.h"

class DictPackConsole : public wxAppConsole
{
public:
    DictPackConsole(){};
    virtual ~DictPackConsole(){};
    
    // virtual bool OnInit();
    
    virtual int OnRun();
    virtual void OnInitCmdLine(wxCmdLineParser& parser);
    virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
    
    // virtual int OnExit();
    // virtual void CleanUp();
    
    int pack();
    int unpack();
    int rmindex();
    int mkindex();
    
private:
    wxString output_dir;
    wxString daopack_path;
    wxString daodict_path;
    
    DictDBUtils* p_dictdb_utils;
};

DECLARE_APP(DictPackConsole)
